Hi there! I have similar task and I wasn't able to find sample code where UITargetedPreview is initialised with previewTarget.
My question, how to make view (targetedPreview.view) transparent. I tried to do it in this way:
let previewParams = UIPreviewParameters();
previewParams.backgroundColor = .clear;
previewParams.visiblePath = UIBezierPath(roundedRect: myContainerView.frame, cornerRadius: 20).
But it doesn't work.Could you please show me your implementation or sample?